package com.lrs.java.j2se_self.ioReview;
import java.io.*;
public class TestTransform2 {
	public static void main(String[] args){
		int b = 0;
		String s = null;
		try{
			InputStreamReader isr = new InputStreamReader(new FileInputStream("C:\\test6.java"));
			while((b=isr.read())!=-1){
				System.out.print((char)b);
			}
			isr.close();
			isr = new InputStreamReader(System.in);
			BufferedReader bf = new BufferedReader(isr);
			s = bf.readLine();
			while(s != null){
				if(s.equalsIgnoreCase("exit")){
					break;
				}
				System.out.println(s);
				s = bf.readLine();
			}
			bf.close();
		}catch(IOException e){
			e.getMessage();
		}
	}
}
